package com.spark.lola.mapper.pur;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.spark.lola.entity.pur.ReturnOrderInfo;
import com.spark.lola.support.mybatis.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author dengyejun
 * @since 2020-05-18
 */
@Mapper
public interface ReturnOrderInfoMapper extends BaseMapper<ReturnOrderInfo> {
    IPage<ReturnOrderInfo> page(Page page, @Param(Constants.WRAPPER) Wrapper wrapper);

    ReturnOrderInfo selectById(Long id);

    ReturnOrderInfo selectByNo(String no);

    List<Map<String, Object>> getSales(@Param("byId") Long byId, @Param("start") String start, @Param("end") String end);

}
